/**
 * JNI Interface Request List
 */

#include <jni.h>

struct request_node
{
	long long request_id;
	double request_timestamp;
	struct request_node *next;
};

struct request_list 
{
	struct request_node *head;
	struct request_node *tail;
	int length;
};

struct request_list *request_list_create();

void request_list_add(struct request_list *list, long long request_id, double request_timestamp);

void request_list_destroy(struct request_list *list);

void request_list_print(struct request_list *list);

long long * request_list_to_array(struct request_list *list);


